package com.atguigu.bean;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

/**
 * @author gcq
 * @Create 2020-09-22
 */
@Component
public class Cat implements InitializingBean, DisposableBean {

    public Cat() {
        System.out.println("car....");
    }

    public void destroy() throws Exception {
        System.out.println("destory....");
    }

    public void afterPropertiesSet() throws Exception {
        System.out.println("after.....");
    }
}